package com.zzy.test;

import weibo4j.Friendships;
import weibo4j.Weibo;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

/**
 * 关注某个人
 * @author eason
 *
 */
public class CreateFriendships {

	public static void main(String[] args) {
		String access_token = "2.008iGhsCY2oJYD608560b967L89H4C";
		Weibo weibo = new Weibo();
		weibo.setToken(access_token);
		//String uid = args[1];
		Friendships fm = new Friendships();
		try {
			//User user = fm.createFriendshipsById(uid);
			User user = fm.createFriendshipsByName("有点浪费的一室一厅");
			Log.logInfo(user.toString());
		} catch (WeiboException e) {
			e.printStackTrace();
		}

	}

}
